﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WebApp.Entities
{
    [Table("exception_log")]
    public class ExceptionLog
    {
        public long Id { get; set; }
        public int AppId { get; set; }
        [MaxLength(12)]
        public string CollectorCode { get; set; }
        [MaxLength(12)]
        public string MeterCode { get; set; }

        [MaxLength(4)]
        public string Command { get; set; }

        [MaxLength(50)]
        public string RequestId { get; set; }

        [MaxLength(255)]
        public string CallbackUrl { get; set; }

        [MaxLength(500)]
        public string Message { get; set; }

        [MaxLength(1000)]
        public string StackTrace { get; set; }

        public DateTime CreateTime { get; set; }

    }
}
